package org.example.mapper;

import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.example.domain.SysUser;
import org.example.vo.SysUserVo;
import org.springframework.web.bind.annotation.RequestParam;;

import java.util.List;

@Mapper
public interface SysUserMapper {
    /**
     * 用户名密码
     * @param userName
     * @return
     */
    SysUser getOne(@RequestParam("userName") String userName);


    List<SysUser> list(@RequestParam("sysUserVo") SysUserVo sysUserVo);

    List<SysUser> listUserMenu();

    void saveUser(SysUser sysUser);

    void updateUser(SysUser sysUser);

    SysUser selectUserById(@RequestParam("userId") Long userId);

    List<Long> rolesById(@RequestParam("userId") Long userId);
    boolean delAll(List<Long> userId);

    List<SysUser> listExcel();


    List<Long> postById(Long userId);

    boolean updateUsers(List<Long> userId);
}
